<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initDoctype(){
		$this->bootstrap('view');
        $view = $this->getResource('view');
        $view->doctype('XHTML1_STRICT');
	}
	
	protected function _initView(){
		$view = new Zend_View();
		$view->doctype('XHTML1_STRICT');
		$view->headTitle("Tran Minh Quang");
		$view->skin = 'blues';
		//Add it to the ViewRenderer
		$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
		$viewRenderer->setView($view);
		//return it, so that it can be stored by bootstrap
		return $view;
	}
	
	protected function _initAutoload(){
		$autoLoader = Zend_Loader_Autoloader::getInstance();
		$resourceLoader = new Zend_Loader_Autoloader_Resource(array(
			'basePath'		=>	APPLICATION_PATH,
			'namespace'		=>	'',
			'resourceTypes'	=>	array(
				'form'	=>	array(
					'path'		=>	'forms/',
					'namespace'	=>	'Form_'
				),
				'model'	=>	array(
					'path'		=>	'models/',
					'namespace'	=>	'Model_'
				),
			),
		));
		return $autoLoader;
	}
}

